package tech.heptagram.staff.cas.mapper;


import org.apache.ibatis.annotations.Param;

import java.util.List;

import tech.heptagram.staff.cas.domain.po.Role;

/**
 * Created by yang on 2017/7/4.
 */
public interface CasRoleMapper {

    int insert(Role po);

    int update(Role po);

    int deleteById(@Param("id") Integer id, @Param("deletedBy") String deletedBy);

    List<Role> selectAll();

    Role selectById(Integer id);

    Role selectByName(String name);

    List<Role> selectByStaffCode(@Param("staffCode") String staffCode);

    List<Role> selectByMenuId(@Param("menuId") Integer menuId);
}
